<script setup>
import { ref } from 'vue'

const count = ref(0)
const props = defineProps(['title', 'subtitle'])
console.log(props.title)
// const emit = defineEmits(['enlarge-text'])
// const btnClick=()=>{
//   emit('enlarge-text')
// }
</script>

<template>
  <h4>{{ title }}</h4>
  <h5 style="color: antiquewhite">{{ subtitle }}</h5>
  <div>
    <span>{{ count }}</span>
    <button @click="count++">点 赞</button>
    <button>字号放大</button>
  </div>
</template>
